<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改排班')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-duty-edit" th:object="${bizDuty}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">用户id：</label>
                <div class="col-sm-8">
                    <input name="userId" th:field="*{userId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">年份：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="year" th:value="${#dates.format(bizDuty.year, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">月份：</label>
                <div class="col-sm-8">
                    <select name="month" class="form-control m-b" required>
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">1日：</label>
                <div class="col-sm-8">
                    <select name="day1" class="form-control m-b" th:with="type=${@dict.getType('biz_duty_type')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{day1}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">2日：</label>
                <div class="col-sm-8">
                    <select name="day2" class="form-control m-b" th:with="type=${@dict.getType('biz_duty_type')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{day2}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">3日：</label>
                <div class="col-sm-8">
                    <select name="day3" class="form-control m-b" th:with="type=${@dict.getType('biz_duty_type')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{day3}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">4日：</label>
                <div class="col-sm-8">
                    <input name="day4" th:field="*{day4}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">5日：</label>
                <div class="col-sm-8">
                    <input name="day5" th:field="*{day5}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">6日：</label>
                <div class="col-sm-8">
                    <input name="day6" th:field="*{day6}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">7日：</label>
                <div class="col-sm-8">
                    <input name="day7" th:field="*{day7}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">8日：</label>
                <div class="col-sm-8">
                    <input name="day8" th:field="*{day8}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">9日：</label>
                <div class="col-sm-8">
                    <input name="day9" th:field="*{day9}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">10日：</label>
                <div class="col-sm-8">
                    <input name="day10" th:field="*{day10}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">11日：</label>
                <div class="col-sm-8">
                    <input name="day11" th:field="*{day11}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">12日：</label>
                <div class="col-sm-8">
                    <input name="day12" th:field="*{day12}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">13日：</label>
                <div class="col-sm-8">
                    <input name="day13" th:field="*{day13}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">14日：</label>
                <div class="col-sm-8">
                    <input name="day14" th:field="*{day14}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">15日：</label>
                <div class="col-sm-8">
                    <input name="day15" th:field="*{day15}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">16日：</label>
                <div class="col-sm-8">
                    <input name="day16" th:field="*{day16}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">17日：</label>
                <div class="col-sm-8">
                    <input name="day17" th:field="*{day17}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">18日：</label>
                <div class="col-sm-8">
                    <input name="day18" th:field="*{day18}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">19日：</label>
                <div class="col-sm-8">
                    <input name="day19" th:field="*{day19}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">20日：</label>
                <div class="col-sm-8">
                    <input name="day20" th:field="*{day20}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">21日：</label>
                <div class="col-sm-8">
                    <input name="day21" th:field="*{day21}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">22日：</label>
                <div class="col-sm-8">
                    <input name="day22" th:field="*{day22}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">23日：</label>
                <div class="col-sm-8">
                    <input name="day23" th:field="*{day23}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">24日：</label>
                <div class="col-sm-8">
                    <input name="day24" th:field="*{day24}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">25日：</label>
                <div class="col-sm-8">
                    <input name="day25" th:field="*{day25}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">26日：</label>
                <div class="col-sm-8">
                    <input name="day26" th:field="*{day26}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">27日：</label>
                <div class="col-sm-8">
                    <input name="day27" th:field="*{day27}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">28日：</label>
                <div class="col-sm-8">
                    <input name="day28" th:field="*{day28}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">29日：</label>
                <div class="col-sm-8">
                    <input name="day29" th:field="*{day29}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">30日：</label>
                <div class="col-sm-8">
                    <input name="day30" th:field="*{day30}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">31日：</label>
                <div class="col-sm-8">
                    <input name="day31" th:field="*{day31}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "system/duty";
        $("#form-duty-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-duty-edit').serialize());
            }
        }

        $("input[name='year']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>